package forward.Module.Modules.Misc;

import forward.api.EventHandler;
import forward.api.Events.World.EventPacketSend;
import forward.Module.Module;
import forward.Module.ModuleType;
import java.awt.Color;

import net.minecraft.network.play.server.S08PacketPlayerPosLook;

public class NoRotate extends Module {
	public NoRotate() {
		super("NoRotate", new String[] { "" }, ModuleType.Misc);
		this.setColor(new Color(17, 250, 154).getRGB());
	}

	@EventHandler
	private void onPacket(EventPacketSend e) {
		if (e.getPacket() instanceof S08PacketPlayerPosLook) {
			S08PacketPlayerPosLook look = (S08PacketPlayerPosLook) e.getPacket();
			look.yaw = this.mc.thePlayer.rotationYaw;
			look.pitch = this.mc.thePlayer.rotationPitch;
		}
	}
}
